<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>新全局常量</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="migration82.new-functions.html">« 新函数</a></li>
      <li style="float: right;"><a href="migration82.incompatible.html">不向后兼容的变更 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="migration82.html">从 PHP 8.1.x 移植到 PHP 8.2.x</a></li>
    <li>新全局常量</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="migration82.constants" class="sect1">
 <h2 class="title">新全局常量</h2>

 <div class="sect2" id="migration82.constants.com">
  <h3 class="title">COM</h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara"><strong><code>DISP_E_PARAMNOTFOUND</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LOCALE_NEUTRAL</code></strong></span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration82.constants.curl">
  <h3 class="title">cURL</h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLALTSVC_H1</code></strong> (libcurl &gt;= 7.64.1)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLALTSVC_H2</code></strong> (libcurl &gt;= 7.64.1)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLALTSVC_H3</code></strong> (libcurl &gt;= 7.64.1)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLALTSVC_READONLYFILE</code></strong> (libcurl &gt;= 7.64.1)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLAUTH_AWS_SIGV4</code></strong> (libcurl &gt;= 7.75.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLE_PROXY</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLFTPMETHOD_DEFAULT</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLHSTS_ENABLE</code></strong> (libcurl &gt;= 7.74.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLHSTS_READONLYFILE</code></strong> (libcurl &gt;= 7.74.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLINFO_PROXY_ERROR</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLINFO_REFERER</code></strong> (libcurl &gt;= 7.76.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLINFO_RETRY_AFTER</code></strong> (libcurl &gt;= 7.66.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLMOPT_MAX_CONCURRENT_STREAMS</code></strong> (libcurl &gt;= 7.67.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLOPT_ALTSVC_CTRL</code></strong> (libcurl &gt;= 7.64.1)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLOPT_ALTSVC</code></strong> (libcurl &gt;= 7.64.1)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLOPT_AWS_SIGV4</code></strong> (libcurl &gt;= 7.75.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLOPT_CAINFO_BLOB</code></strong> (libcurl &gt;= 7.77.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLOPT_DOH_SSL_VERIFYHOST</code></strong> (libcurl &gt;= 7.76.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLOPT_DOH_SSL_VERIFYPEER</code></strong> (libcurl &gt;= 7.76.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLOPT_DOH_SSL_VERIFYSTATUS</code></strong> (libcurl &gt;= 7.76.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLOPT_HSTS_CTRL</code></strong> (libcurl &gt;= 7.74.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLOPT_HSTS</code></strong> (libcurl &gt;= 7.74.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLOPT_MAIL_RCPT_ALLLOWFAILS</code></strong> (libcurl &gt;= 7.69.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLOPT_MAXAGE_CONN</code></strong> (libcurl &gt;= 7.65.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLOPT_MAXFILESIZE_LARGE</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLOPT_MAXLIFETIME_CONN</code></strong> (libcurl &gt;= 7.80.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLOPT_PROXY_CAINFO_BLOB</code></strong> (libcurl &gt;= 7.77.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLOPT_SASL_AUTHZID</code></strong> (libcurl &gt;= 7.66.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256</code></strong> (libcurl &gt;= 7.80.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLOPT_SSL_EC_CURVES</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLOPT_UPKEEP_INTERVAL_MS</code></strong> (libcurl &gt;= 7.62.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLOPT_UPLOAD_BUFFERSIZE</code></strong> (libcurl &gt;= 7.62.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLOPT_XFERINFOFUNCTION</code></strong> (libcurl &gt;= 7.32.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPROTO_MQTT</code></strong> (libcurl &gt;= 7.71.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_BAD_ADDRESS_TYPE</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_BAD_VERSION</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_CLOSED</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_GSSAPI</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_GSSAPI_PERMSG</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_GSSAPI_PROTECTION</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_IDENTD_DIFFER</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_IDENTD</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_LONG_HOSTNAME</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_LONG_PASSWD</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_LONG_USER</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_NO_AUTH</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_OK</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_RECV_ADDRESS</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_RECV_AUTH</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_RECV_CONNECT</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_RECV_REQACK</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_REPLY_ADDRESS_TYPE_NOT_SUPPORTED</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_REPLY_COMMAND_NOT_SUPPORTED</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_REPLY_CONNECTION_REFUSED</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_REPLY_GENERAL_SERVER_FAILURE</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_REPLY_HOST_UNREACHABLE</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_REPLY_NETWORK_UNREACHABLE</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_REPLY_NOT_ALLOWED</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_REPLY_TTL_EXPIRED</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_REPLY_UNASSIGNED</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_REQUEST_FAILED</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_RESOLVE_HOST</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_SEND_AUTH</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_SEND_CONNECT</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_SEND_REQUEST</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_UNKNOWN_FAIL</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_UNKNOWN_MODE</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLPX_USER_REJECTED</code></strong> (libcurl &gt;= 7.73.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLSSLOPT_AUTO_CLIENT_CERT</code></strong> (libcurl &gt;= 7.77.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLSSLOPT_NATIVE_CA</code></strong> (libcurl &gt;= 7.71.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLSSLOPT_NO_PARTIALCHAIN</code></strong> (libcurl &gt;= 7.68.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURLSSLOPT_REVOKE_BEST_EFFORT</code></strong> (libcurl &gt;= 7.70.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURL_VERSION_GSASL</code></strong> (libcurl &gt;= 7.76.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURL_VERSION_HSTS</code></strong> (libcurl &gt;= 7.74.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURL_VERSION_HTTP3</code></strong> (libcurl &gt;= 7.66.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURL_VERSION_UNICODE</code></strong> (libcurl &gt;= 7.72.0)
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>CURL_VERSION_ZSTD</code></strong> (libcurl &gt;= 7.72.0)
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration82.constants.dba">
  <h3 class="title">DBA</h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara"><strong><code>DBA_LMDB_USE_SUB_DIR</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>DBA_LMDB_NO_SUB_DIR</code></strong></span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration82.constants.filter">
  <h3 class="title">Filter</h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara"><strong><code>FILTER_FLAG_GLOBAL_RANGE</code></strong></span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration82.constants.sockets">
  <h3 class="title">Sockets</h3>

  <p class="para">
   如果支持则会定义下列套接字选项：
  </p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara"><strong><code>SO_INCOMING_CPU</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>SO_MEMINFO</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>SO_RTABLE</code></strong> (OpenBSD)</span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TCP_KEEPALIVE</code></strong> (MacOS)</span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TCP_KEEPCNT</code></strong> (Linux, others)</span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TCP_KEEPIDLE</code></strong> (Linux, others)</span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TCP_KEEPINTVL</code></strong> (Linux, others)</span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TCP_NOTSENT_LOWAT</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LOCAL_CREDS_PERSISTENT</code></strong> (FreeBSD)</span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>SCM_CREDS2</code></strong> (FreeBSD)</span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>LOCAL_CREDS</code></strong> (NetBSD)</span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>SO_BPF_EXTENSIONS</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>SO_SETFIB</code></strong></span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>TCP_CONGESTION</code></strong> (Linux, FreeBSD)</span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>SO_ZEROCOPY</code></strong> (Linux)</span>
   </li>
   <li class="listitem">
    <span class="simpara"><strong><code>MSG_ZEROCOPY</code></strong> (Linux)</span>
   </li>
  </ul>
 </div>

</div></div></div></body></html>